﻿using System.Web;
using System.Web.Optimization;

namespace HouseAgencySite
{
    public class BundleConfig
    {
        // 有关 Bundling 的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js",
                        "~/Scripts/jquery.ui.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));
            bundles.Add(new ScriptBundle("~/bundles/common").Include(
                        "~/Areas/Admin/js/common.js"));
            // 使用要用于开发和学习的 Modernizr 的开发版本。然后，当你做好
            // 生产准备时，请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));
            bundles.Add(new ScriptBundle("~/bundles/galleria").Include("~/Scripts/galleria-{version}.min.js"));
            bundles.Add(new StyleBundle("~/Content/galleria").Include(
                    "~/Content/galleria.classic.css"));
            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/pagerstyles.css",
                       //"~/Content/site.css",
                       "~/Content/custstyles.css",
                       "~/Content/css/css.css"));
            bundles.Add(new StyleBundle("~/Content/upload").Include(
                    "~/Controls/uploadify/uploadify.css"));
            bundles.Add(new ScriptBundle("~/bundles/pager").Include(
                    "~/Scripts/MvcPager.js"));

            bundles.Add(new ScriptBundle("~/bundles/upload").Include(
                   "~/Controls/uploadify/uploadify.js"));
            bundles.Add(new ScriptBundle("~/bundles/editor").Include(
                 "~/Controls/ckeditor/editor.js", "~/Controls/ckfinder/ckfinder.js"));
        }
    }
}